package com.ldy.core.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 操作日志
 * @author lindeyi
 *
 */
@Data
@TableName("base_logs")
public class BaseLogs {
	
	public static final String TYPE_QF = "签发";
	public static final String TYPE_XQ = "续签";
	public static final String TYPE_BD = "绑定";
	public static final String TYPE_JB = "解绑";
	public static final String TYPE_GXBD = "更新绑定";
	public static final String TYPE_DL = "删除";
	public static final String TYPE_CJ = "创建用户";
	public static final String TYPE_JY = "禁用用户";
	public static final String TYPE_SQ = "添加授权";
	
	public static final String TYPE_UP = "更新用户版本";

	/**
	 * 主键id
	 */
	@TableId(type = IdType.UUID)
	private String id;
	
	/**
	 * 操作类型：签发、绑定、解绑、创建用户、禁用用户、添加授权次数
	 */
	private String type;
	
	/**
	 * 描述信息
	 */
	private String msg;
	
	/**
	 * 操作时间
	 */
	private Date operationTime;
	
	/**
	 * 操作人
	 */
	private String operator;
	
}
